<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <form action="http://localhost:3000/files/upload" method="post" enctype="multipart/form-data">
      <label for="fileUpload">选择文件:</label>
      <input type="file" id="file" name="file" />
      <input type="submit" id="upload" value="上传" />
    </form>

    <script>
      const fileInput = document.getElementById('file')
      const uploadBtn = document.getElementById('upload')
      // uploadBtn.addEvenListener('click', ()=> {
      //   console.log(fileInput.value)
      // })
    </script>
  </body>
</html>
